package com.falcon.service;

import com.falcon.domain.dos.RoleDO;
import com.falcon.domain.po.RolePO;
import com.falcon.domain.req.RoleQuery;
import com.falcon.domain.req.RoleRequest;
import com.falcon.mvc.domain.BasePager;

import java.util.List;

public interface IRoleService {

    Long save(RoleRequest request);

    Boolean update(Long id, RoleRequest request);

    Boolean deleteById(Long id);

    RoleDO queryById(Long id);

    List<RoleDO> queryList(RoleQuery request);

    BasePager<RoleDO> queryPager(RoleQuery request);

    int batchDelete(List<Long> ids);

    List<RolePO> queryRoleListByUserId(Long id);
}

